import request from '@/utils/request'

// 查询二级库物资列表
export function listEjkwz(query) {
  return request({
    url: '/ejkgl/ejkwz/list',
    method: 'get',
    params: query
  })
}

// 查询二级库物资详细
export function getEjkwz(ejkwzId) {
  return request({
    url: '/ejkgl/ejkwz/' + ejkwzId,
    method: 'get'
  })
}

// 新增二级库物资
export function addEjkwz(data) {
  return request({
    url: '/ejkgl/ejkwz',
    method: 'post',
    data: data
  })
}

// 修改二级库物资
export function updateEjkwz(data) {
  return request({
    url: '/ejkgl/ejkwz',
    method: 'put',
    data: data
  })
}

// 删除二级库物资
export function delEjkwz(ejkwzId) {
  return request({
    url: '/ejkgl/ejkwz/' + ejkwzId,
    method: 'delete'
  })
}
